<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" href="${ctx}/css/base.css">
<link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all">
<link rel="stylesheet" href="${ctx}/layui/css/asset-in-view.css" media="all">
<script src="${ctx}/js/jsutils.js"></script>
<!-- <style type="text/css">
	.layui-table-body .layui-table-main{
		height: auto;
	}
</style> -->
</head>
<body>
	<div class="layui-main layui-form-pane">
		<div class="layui-tab">
			<ul class="layui-tab-title">
				<li class="layui-this">基本信息</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
						<div class="layui-form-item">
							<label class="layui-form-label">单号</label>
							<div class="layui-input-inline" style="width:200px">
								<input type="text" id="id" name="id" value="${assetScrap.id }" class="layui-input">
							</div>
							
							<div class="layui-input-inline" style="width:110px">&nbsp;</div>
							
							<label class="layui-form-label">申请人</label>
							<div class="layui-input-inline" style="width:220px">
								<input type="text" id="createUserName" name="createUserName" value="${assetScrap.createUserName }" class="layui-input">
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">申请时间</label>
							<div class="layui-input-inline" style="width:200px">
								<input type="text" id="createTime" name="createTime" value="${assetScrap.createTimeStr}" class="layui-input">
							</div>
							
							<div class="layui-input-inline" style="width:110px">&nbsp;</div>
							
							<%--<label class="layui-form-label" style="height:80px;display:flex;justify-content:center;align-items:center">备注</label>--%>
							<%--<div class="layui-input-inline" style="width:220px">--%>
								<%--<textarea name="remark" style="width:100%;height: 80px;box-sizing:border-box">${assetScrap.remark }</textarea>--%>
							<%--</div>--%>
						</div>

						<div class="layui-form-item layui-form-text">
							<label class="layui-form-label">备注</label>
							<div class="layui-input-block">
								<textarea id="remark" name="remark" disabled class="layui-textarea">${assetScrap.remark }</textarea>
							</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label" style="height:100px;display:flex;justify-content:center;align-items:center">照片</label>
								<div>
							<c:forEach items="${assetScrap.imgList }" var="img">
									<img style="width:150px;height:100px" src="${img }"/>
							</c:forEach>
								</div>
						</div>
						<%--<div class="layui-form-item">--%>
							<%--<label class="layui-form-label" style="height:80px;display:flex;justify-content:center;align-items:center">驳回理由</label>--%>
							<%--<div style="display:inline-block;width:70%">--%>
								<%--<textarea name="refuseReason" style="width:100%;height: 80px;box-sizing:border-box">${assetScrap.refuseReason }</textarea>--%>
							<%--</div>--%>
						<%--</div>--%>

						<div class="layui-form-item layui-form-text">
							<label class="layui-form-label">驳回理由</label>
							<div class="layui-input-block">
								<textarea id="refuseReason" name="refuseReason" disabled class="layui-textarea">${assetScrap.refuseReason }</textarea>
							</div>
						</div>
						
						<c:forEach items="${assetScrap.typeList }" var="obj">
							<div class="layui-form-item" style="white-space:nowrap">
									<div style="display: inline-block">
										<label class="layui-form-label" >类型</label>
										<div class="layui-input-inline" style="width:110px;text-align: center">
											<input type="text"  disabled id="typeName" name="typeName" value="${obj.name }" class="layui-input">
										</div>
									</div>
									<div style="display:inline-block">
										<label class="layui-form-label" >数量</label>
										<div class="layui-input-inline" style="width:180px;text-align: center">
											<input type="text"  disabled name="outCount" id="outCount" value="${obj.num }" class="layui-input"/>
										</div>
									</div>
									<div style="display: inline-block">
										<label class="layui-form-label" >确认数量</label>
										<div class="layui-input-inline" style="width:180px">
											<input type="text"  disabled name="truthCount" id="truthCount" value="${obj.confirmNum}" class="layui-input"/>
										</div>
									</div>
							</div>
						</c:forEach>
							
						<div class="layui-form-item" style="white-space:nowrap;" align="left">
							<div style="display:inline-block">
								<label class="layui-form-label" >审批人</label>
								<div class="layui-input-inline" style="width:110px">
									<input type="text" id="approveName" name="approveName" value="${assetScrap.approveName }" class="layui-input">
								</div>
							</div>
							<div style="display:inline-block">
								<label class="layui-form-label" >审批时间</label>
								<div class="layui-input-inline" style="width:180px">
									<input type="text" id="approveDate" name="approveDate" value="${assetScrap.approveDateStr }" class="layui-input">
								</div>
							</div>
							<div style="display:inline-block">
								<label class="layui-form-label" >完成时间</label>
								<div class="layui-input-inline" style="width:180px">
									<input type="text" id="completeTime" name="completeTime" value="${assetScrap.comTimeStr }" class="layui-input">
								</div>
							</div>
						</div>
						
				</div>
			</div>
		</div>
		<c:set var="parentRowIndex" value="${parent_row}"/>
		<div id="itemTable" style="width: 1920px"></div>
	</div>
	
	<script src="${ctx}/js/jquery.min.js"></script>
	<script src="${ctx}/layui/layui/layui.js"></script>
	<%-- <script src="${ctx}/layui/layui.js"></script> --%>
<script type="text/javascript">
	var rootPath = '${ctx}';
	var parentRowIndex = '${parentRowIndex}';
</script>
<script type="text/html" id="titleTpl">
	{{#  if(d.scrapStatus == 1 || d.scrapStatus == '1'){ }}
		<label>报废</label>
	{{#  } else { }}
		<label>未处理</label>
	{{#  } }}
</script>
<script src="${ctx}/js/assetscrap/assetscrap_view.js"></script>
</body>
</html>